﻿@model  NewRen.Models.UserGroup
@using NewRen.Models
@{
    ViewBag.Title = "牛棚增加";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>增加牛棚</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">后台管理</a>
            </li>
            <li>
                <a>牛棚管理</a>
            </li>
            <li>
                <a>增加牛棚</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>牛棚增加 <small><a href="/Admin/UserGroup/Index">牛棚管理</a></small></h5>
                </div>
                <div class="ibox-content">
                    @using (Html.BeginForm("Add", "UserGroup", FormMethod.Post, new { id = "frmAddUserGroup", @class = "form-horizontal", enctype = "multipart/form-data" }))
                    {
                        @Html.AntiForgeryToken()
                        <div class="form-group">
                            <label class="col-sm-2 control-label">牛棚名称</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="牛棚名称" name="GroupName">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">描述</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="描述" name="Description">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">城市</label>
                            <div class="col-sm-10">
                                <select name="City" class="form-control w-2">
                                    @foreach (var item in ViewBag.Cities as List<City>)
                                    {
                                        <option value="@item.CityName">@item.CityName</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">行业</label>
                            <div class="col-sm-10">
                                <select name="Industry" class="form-control w-2">
                                    @foreach (var item in ViewBag.Industries as List<Industry>)
                                    {
                                        <option value="@item.IndustryName">@item.IndustryName</option>
                                    }
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">电话</label>
                            <div class="col-sm-10">
                                <input type="text" placeholder="电话" class="form-control" name="Phone">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">登陆名称</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="登陆名称" class="form-control" name="LoginName">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">登陆密码</label>
                            <div class="col-lg-10">
                                <input type="password" placeholder="登陆密码" class="form-control" name="LoginPassword">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">邮箱</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="邮箱" class="form-control" name="Email">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">微信</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="微信" class="form-control" name="WhatApp">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">微博</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="微信" class="form-control" name="Weibo">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">地址</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="地址" class="form-control" name="Address">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">优先级</label>
                            <div class="col-lg-10">
                                <input type="text" placeholder="优先级" class="form-control" name="Priority">（请必须填写）
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">图片</label>
                            <div class="col-lg-10">
                                <input type="file" name="file" id="file" class="form-control" /><span class="help-block m-b-none">（不上传请勿选择）</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="reset">重置</button>
                            </div>
                            <span class="help-block m-b-none">@Html.ValidationSummary(true)</span>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>
